package com.finance.rule.dao;

import com.finance.rule.bean.pojo.MasterRule;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: gly
 * @Date: Created in 2017-08-08
 */
public interface MasterRuleMapper {
    Long add(MasterRule masterRule);

    int deleteMasterRule(@Param("supplierCode") String supplierCode,@Param("carrierCode") String carrierCode,@Param("toProvince") String toProvince);

    int deleteMasterRuleAll(@Param("calculateType")int calculateType);

    Long masterRuleIsExist(@Param("supplierCode") String supplierCode,@Param("carrierCode") String carrierCode,@Param("toProvince") String toProvince);

    MasterRule getMasterRules(@Param("ruleId") String ruleId);
}
